package top.huntwolf.admin.common.enums;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum OrderStatus implements EnumValue{

    /*待付款*/
    WAIT_PAY((short)0,"待付款"),

    /*待发货*/
    WAIT_DELIVER((short)1,"待发货"),

    /*待收货*/
    WAIT_RECEIVED((short)2,"待收货"),

    /*退款*/
    REFUND((short)3,"已退款"),

    /*待初审*/
    WAIT_PRE_EXAMINE((short)4,"待初审"),

    /*待取件*/
    WAIT_PICK((short)5,"待取件"),

    /*待审核*/
    WAIT_EXAMINE((short)6,"待审核"),

    /*待收款*/
    WAIT_COLLECTION((short)7,"待收款"),

    /*已完成*/
    COMPLETE((short)8,"已完成"),

    /*取消订单*/
    CANCELED((short)9,"已取消"),

    /*未完成*/
    INCOMPLETE((short)10,"未完成"),

    /*申请退款*/
    REFUND_PROCESS((short)11,"退款中"),

//    /*未还书*/
//    WAIT_RETURN((short)4,"未还书"),
//
//    /*已归还*/
//    RETURNED((short)5,"已归还")
    ;

    private final short value;
    private final String desc;

    public short value() {
        return value;
    }

    public String desc() {
        return desc;
    }

    @Override
    public Object toValue() {
        return value;
    }
}
